package com.example.demo.Service;

import com.example.demo.Dao.UserDao;
import com.example.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserService {

     @Autowired
    public UserDao userInfoDao;
     public User selectByName(User userInfo1){
        return userInfoDao.selectByName(userInfo1);

     }
}
